<?php $banners = $this->requestAction('banners/slider');?>  
<ul id="mycarousel" class="jcarousel-skin-tango">
        <?php foreach($banners as $banner): ?>
            <li>
            <?php
                if(!empty($banner['Banner']['link'])):
                    echo $html->link($html->image('/files/banners/'.$banner['Banner']['filename'],array('alt'=>$banner['Banner']['nombre_banner'],'width'=>300,'height'=>110)),'http://'.$banner['Banner']['link'],array('escape'=>false,'rel'=>'nofollow','target'=>'_blank'));
                else:
                    echo $html->image('/files/banners/'.$banner['Banner']['filename'],array('alt'=>$banner['Banner']['nombre_banner'],'width'=>300,'height'=>110));
                endif;

                ?></li>
        <?php endforeach;
        
        if(!count($banners)):?>
            <li><?php echo $html->image('banner_300x110.jpg'); ?></li>
            <li><?php echo $html->image('banner_300x110.jpg'); ?></li>
            <li><?php echo $html->image('banner_300x110.jpg'); ?></li>
        <?php endif; ?>
  </ul>
